import Vue from 'vue'

// 导入路由
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import  router from './router'

// 导入MUI样式
import  {Header,Swipe,SwipeItem} from 'mint-ui'
Vue.component(Header.name,Header)
Vue.component(Swipe.name,Header)
Vue.component(SwipeItem.name,Header)
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'


import moment from 'moment'
// 全局过滤器
Vue.filter('dateFormat',function (dataStr,pattern = 'YYYY-MM-DD HH:mm:ss') {
    return moment(dataStr).format(pattern)
})



import  VueResource from 'vue-resource'
Vue.use(VueResource)
Vue.http.options.root = 'http://vue.studyit.io'


import app from './App.vue'

var vm = new Vue({
    el:'#app',
    render: c => c(app),
    router
})